<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <num-a></num-a>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.11/vue.js"></script>
    <script>
        Vue.component('NumA', {
            template: `
            <div>
                <num-b mn='10000' car='跑车' :abc=abc ></num-b>
            </div>
            `,
            data() {
                return { abc: 100 }
            }


        })
        Vue.component('NumB', {
            props: ['mn', 'car', 'abc'],
            template: `
            <div>
                老爸给的：{{mn}}还有老爸给的：{{car}}{{abc}}
            </div>
            `
        })
        new Vue({
            el: '#app',

        })
    </script>
</body>

</html>